package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.etone.smartAudit.enums.CheckState;
import com.etone.smartAudit.enums.StateType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author: 蒋学伟
 * @create: 2020-07-16 10:20:17
 * @Description 项目扩容记录
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "f_item_expansion")
public class ItemExpansion implements Serializable {

    @TableId(type = IdType.AUTO, value = "intId")
    private Integer id;

    /**
     * 项目id
     */
    @TableField("intItemId")
    private Integer itemId;

    /**
     * 联系人
     */
    @TableField("vcContact")
    private String contact;

    /**
     * 联系方式
     */
    @TableField("vcContactTel")
    private String contactTel;

    /**
     * 备注
     */
    @TableField("vcRemark")
    private String remark;

    /**
     * 扩容原因
     */
    @TableField("vcCause")
    private String cause;

    /**
     * 下一步节点人ID
     */
    @TableField("intNodeAdminId")
    private Integer nodeAdminId;

    /**
     * 下一步节点人名称
     */
    @TableField("vcNodeAdminName")
    private String nodeAdminName;

    /**
     * 创建人id
     */
    @TableField("intCreateAdminId")
    private Integer createAdminId;

    /**
     * 创建人名称
     */
    @TableField("vcCreateAdminName")
    private String createAdminName;

    /**
     * 创建时间
     */
    @TableField("dtCreateTime")
    private Date createTime;

    /**
     * 审核状态
     */
    @TableField("vcCheckState")
    private CheckState checkState;

    /**
     * 审核时间
     */
    @TableField("dtCheckTime")
    private Date checkTime;

    /**
     * 状态
     */
    @TableField("vcState")
    private StateType state;

    /**
     * 是否是初次申请
     */
    @TableField("isFirst")
    private Boolean isFirst;

    /**
     * 资源内容
     */
    @TableField(exist = false)
    private List<ItemExpansionSource> itemExpansionSources;

}
